const mongoose = require('mongoose')

const Schema = mongoose.Schema

mongoose.connect("mongodb://localhost/graproject", { useNewUrlParser: true })

var mountSchema = new Schema({
    wMountId:{//博主的id  根据此 id获取分类
        type: Object,
        required: true
    },

    wMountData:{
        type: Array,
        required: true
    }
    //包含一下数据 对象
    // typeId:{//分类的id 
    //     type: String,
    //     required: true
    // },

    // typeNum:{//分类的下的文章数量 
    //     type: Number,
    //     required: true
    // }
})

module.exports = mongoose.model('writingMount', mountSchema)